import request from '@/utils/request'

// 渠道sku列表
export function queryChannelSkuList(data){
  return request({
    url: '/product/product-channel-sku/list',
    method: 'POST',
    data
  })
}

// 新增 渠道sku
export function channelSkuSave(data){
  return request({
    url: '/product/product-channel-sku/save',
    method: 'POST',
    data
  })
}

// 渠道sku 编辑
export function channelSkuEdit(data){
  return request({
    url: '/product/product-channel-sku/edit',
    method: 'POST',
    data
  })
}

// 渠道sku 编辑状态
export function channelSkuUpdateStatus(data){
  return request({
    url: '/product/product-channel-sku/update-status',
    method: 'POST',
    data
  })
}

//批量关联渠道
export function batchChannelSave(data){
  return request({
    url: '/v1/product/product-channel-sku/batch-save',
    method: 'POST',
    data
  })
}

// 渠道SKU日志
export function productChannelSKULog(data){
  return request({
    url: '/v1/product/product-channel-sku/logs',
    method: 'POST',
    data
  })
}

// 获取换标的数据
export function getReplaceProduct(data){
  return request({
    url: '/v1/product/product-channel-sku/get-replace-product',
    method: 'POST',
    data
  })
}

// 进行换标
export function replaceProduct(data){
  return request({
    url: '/v1/product/product-channel-sku/replace-product',
    method: 'POST',
    data
  })
}

// 获取渠道sku已绑定的sku
export function changeskuExist(data){
  return request({
    url: '/v1/product/product-channel-sku/exist',
    method: 'POST',
    data
  })
}

// 批量修改渠道sku运营人员
export function batchOperator(data){
  return request({
    url: '/v1/product/product-channel-sku/batch-operator',
    method: 'POST',
    data
  })
}

// 是否存在相同操作运营
export function existOperation(data){
  return request({
    url: '/v1/product/product-channel-sku/exist-operation',
    method: 'POST',
    data
  })
}





